option(USE_THUMB "Use Thumb for ARMv7" OFF)
add_library(thumb_lib SHARED thumb_lib.c)

if((DEFINED OHOS_ARCH) AND (OHOS_ARCH STREQUAL "armeabi-v7a") AND USE_THUMB)
    target_compile_options(thumb_lib PRIVATE "-mthumb")
endif()

add_library(arm_lib SHARED arm_lib.c)
target_link_libraries(thumb_lib PRIVATE arm_lib)

add_executable(mix_arm_thumb mix_arm_thumb.c)
target_link_libraries(mix_arm_thumb PRIVATE thumb_lib)
